Mathematical sociology